package com.soft.sitegenerator.dao;

import java.io.Serializable;
import java.util.Collection;

import com.soft.sitegenerator.exceptions.ObjectNotFoundException;

public interface HibernateDAO {
    public Serializable save(Object o);
    public void load(Object o,Serializable clave) throws ObjectNotFoundException;
    public void exist(Object object, Serializable clave) throws ObjectNotFoundException;
    public void saveOrUpdate(Object o);
    public void update(Object o);
    public void delete(Object o);
    public Collection find(String cadenaHQL,Object criterio);
    public Collection find(String cadenaHQL,Object []criterio);
    public Collection find(String cadenaHQL);
}
